<div class="row">
	<ul class="hProductItems clearfix">
<?php 
foreach ($aprovedproducts as $product)
{
?>
		<li class="span3 clearfix">
			<div class="thumbnail">
				<a href="<?php print URL . 'products/show/' . $product->product_id; ?>">
				<img style="height:212px; width:192px;" src="<?php if(!empty($product->image)) { print URL . 'uploads/' . $product->image; } else { print URL;?>site/img/212x192.jpg <?php } ?>" alt=""></a>
			</div>
			<div class="thumbSetting">
				<div class="thumbTitle">
					<a href="<?php print URL . 'products/show/' . $product->product_id; ?>" class="invarseColor">
						<?php 
						if($_SESSION['lang'] == 'ar') {
							print $product->product_name_ar;
						} else {
							print $product->product_name_en;
						}
						?>
					</a>
				</div>
				<div class="thumbPrice">
					<span><?php print $product->minprice . ' - ' . $product->maxprice .' - '.$product->votes_count;print ':votes' ?></span>
				</div>

				<div class="thumbButtons">
					<button class="btn btn-primary btn-small" id="javascript-ajax-addtobasket" data-title="+To Cart" data-placement="top" data-toggle="tooltip" onClick="addToBasket('<?php print URL; ?>',<?php print $product->product_id; ?>)">
						<i class="icon-shopping-cart"></i>
					</button>
					<button class="btn btn-small" data-title="+Vote" data-placement="top" data-toggle="tooltip" onClick="vote('<?php print URL; ?>',<?php print $product->product_id; ?>)">
						<i class="icon-heart"></i>
					</button>										
				</div>
			</div>
		</li>
<?php
}
?>
	</ul>
</div><!--end row-->